﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Manager.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HEAD" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="main_content" runat="server">
    <h6> Management -> Messages & Contact -> Inbox</h6>  
    <div>
  <%B2B.Models.SP_MessageDetail messageDetail = (B2B.Models.SP_MessageDetail)ViewData["messageDetail"]; 
        string link = messageDetail.Link;
        string masp = link.Substring(link.LastIndexOf("/") +1);
        string emailNguoiGui = messageDetail.EmailNGuoiGui;
        string emailNguoiNhan = messageDetail.EmailNguoiNhan;
        string hinhAnh = messageDetail.HinhAnh;
        string url = "../../Images/Alibaba/" + hinhAnh;
  %>
   
        <table cellspacing="5px" cellpadding="5px" width="100%" border="0">
            <tr style="background-color:#177f75; font-size:20px; color:white">
                <th colspan="2"><%=messageDetail.ChuDe %>"</th>
            </tr>
            <tr>
                <td colspan="2">                    
                    <form action="/Manage/QuoteCreate" method="post">
                        <input type="hidden" value="<%=link %>" name="link"/>
                        <input type="hidden" value="<%=masp %>" name="maSP" />
                        <input type="hidden" value="<%=emailNguoiGui %>" name="emailNguoiGui" />
                        <input type="hidden" value="<%=emailNguoiNhan %>" name="emailNguoiNhan" />    
                           <input type="hidden" name="loai" value="1" />                   
                        <input type="submit" value="Quote Now" />
                    </form>

                </td>
            </tr>
            <tr>
                <th style="font-size:15px" >Date: </th>
                <td style="width:800px; font-size:15px"><%=messageDetail.NgayGui %></td>
            </tr>
            <tr>
                <th style="font-size:15px">From: </th>
                <td style="font-size:15px"><%=messageDetail.EmailNGuoiGui %></td>
            </tr>
            <tr>
                <th style="font-size:15px">Sent to: </th>
                <td style="font-size:15px"> <%=messageDetail.EmailNguoiNhan %></td>
            </tr>
            <tr>
                <td colspan="2">
                    <div style="width:800px ;padding-left:20px;font-size:15px">
                        <a href="<%=link %>"><img src="<%=url %>" align="top" /> </a><%=messageDetail.NoiDung %>
                        
                    </div>
                </td>
            </tr>            
        </table>
        <div style="height:10px"></div>
        <div>
            <form action="/Product/SendEmailContact" method="post">
                <textarea style="width:750px" name="noiDung" rows="5" cols="20"></textarea> 
                <input type="hidden" name="chuDe" value="<%=messageDetail.ChuDe %>" />
                <input type="hidden" name="emailNguoiGui" value="<%=messageDetail.EmailNguoiNhan %>" />
                <input type="hidden" name="emailNguoiNhan" value="<%=messageDetail.EmailNGuoiGui %>" />
                <input type="hidden" name="hinhAnh" value="<%=messageDetail.HinhAnh %>" />
                <input type="hidden" name="maSP" value="<%=masp %>" />   
                        
                <input type="submit" style="height:100%" value="Quick reply" />
            </form>
        </div>
      
    </div>
</asp:Content>
